package cc.cc4414.cc02.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;

import cc.cc4414.cc02.system.entity.OperationLog;
import cc.cc4414.cc02.system.repository.OperationLogRepository;
import cc.cc4414.cc02.system.service.OperationLogService;

/**
 * @author cc 2018年8月4日
 */
@Service
public class OperationLogServiceImpl implements OperationLogService {

	@Autowired
	private OperationLogRepository operationLogRepository;

	@Override
	public Page<OperationLog> findAll(int page, int size) {
		return operationLogRepository.findAll(PageRequest.of(page, size));
	}

}
